import type { RouteRecordRaw } from 'vue-router';

import { $t } from '#/locales';

const routes: RouteRecordRaw[] = [
  {
    meta: {
      icon: 'lucide:settings',
      order: 1000,
      title: $t('page.system.title'),
    },
    name: 'System',
    path: '/system',
    children: [
      {
        name: 'UserManagement',
        path: '/system/user',
        component: () => import('#/views/system/user/index.vue'),
        meta: {
          icon: 'lucide:users',
          title: $t('page.system.user.title'),
        },
      },
      {
        name: 'RoleManagement',
        path: '/system/role',
        component: () => import('#/views/system/role/index.vue'),
        meta: {
          icon: 'lucide:shield-check',
          title: $t('page.system.role.title'),
        },
      },
      {
        name: 'MenuManagement',
        path: '/system/menu',
        component: () => import('#/views/system/menu/index.vue'),
        meta: {
          icon: 'lucide:menu',
          title: $t('page.system.menu.title'),
        },
      },
      {
        name: 'MembershipLevelManagement',
        path: '/system/membership-level',
        component: () => import('#/views/system/membership-level/index.vue'),
        meta: {
          icon: 'lucide:crown',
          title: $t('page.system.membershipLevel.title'),
        },
      },
      {
        name: 'UserMembershipManagement',
        path: '/system/user-membership',
        component: () => import('#/views/system/user-membership/index.vue'),
        meta: {
          icon: 'lucide:user-check',
          title: $t('page.system.userMembership.title'),
        },
      },
      {
        name: 'GirdManagement',
        path: '/system/gird',
        component: () => import('#/views/system/gird/index.vue'),
        meta: {
          icon: 'lucide:grid-3x3',
          title: $t('page.system.gird.title'),
        },
      },
    ],
  },
];

export default routes; 
 